package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;
import com.mvity.framework.common.global.IParent;

/**
 * 系统字典类型表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_dictionary_class")
public class SystemDictionaryClass extends BaseEntity implements IParent {

	private static final long serialVersionUID = 7215382820399368929L;

	/**
	 * 类型名称
	 */
	@Column(name = "class_name", length = 100, nullable = false)
	private String className;

	/**
	 * 类型 key 程序内调用
	 */
	@Column(name = "class_key", length = 100, nullable = false, unique = true)
	private String classKey;

	/**
	 * 类型简介
	 */
	@Column(name = "class_desc", length = 1000)
	private String classDesc;

	/**
	 * 父级类型ID
	 */
	@Column(name = "parent_id", length = 32)
	private String parentId;

	/**
	 * 类型分类
	 */
	@Column(name = "class_type", length = 50, nullable = false)
	private String classType;

	/**
	 * 是否系统内置
	 */
	@Column(name = "is_system", length = 5, nullable = false)
	private String isSystem;

	/**
	 * @return the className
	 */
	public String getClassName() {
		return className;
	}

	/**
	 * @param className
	 *            the className to set
	 */
	public void setClassName(String className) {
		this.className = className;
	}

	/**
	 * @return the classKey
	 */
	public String getClassKey() {
		return classKey;
	}

	/**
	 * @param classKey
	 *            the classKey to set
	 */
	public void setClassKey(String classKey) {
		this.classKey = classKey;
	}

	/**
	 * @return the classDesc
	 */
	public String getClassDesc() {
		return classDesc;
	}

	/**
	 * @param classDesc
	 *            the classDesc to set
	 */
	public void setClassDesc(String classDesc) {
		this.classDesc = classDesc;
	}

	/**
	 * @return the classType
	 */
	public String getClassType() {
		return classType;
	}

	/**
	 * @param classType
	 *            the classType to set
	 */
	public void setClassType(String classType) {
		this.classType = classType;
	}

	/**
	 * @return the isSystem
	 */
	public String getIsSystem() {
		return isSystem;
	}

	/**
	 * @param isSystem
	 *            the isSystem to set
	 */
	public void setIsSystem(String isSystem) {
		this.isSystem = isSystem;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public String getParentId() {
		return this.parentId;
	}

	@Override
	public String getEntityType() {
		return "DICTIONARY";
	}

}
